<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<style type="text/css">
table
  {
  width:50px;
  }

td
  {
  height:50px;
  }
</style>
<script type="text/javascript">
</script>

<form id="pagerForm" method="post" action="${base }/admin/photo/Photo">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="20" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base }/admin/photo/showEveryPhoto/${obj.type.id}" target="dialog"><span>查看全部</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="removeSelected" href="${base}/admin/photo/deletePhotos" class="delete"><span>批量删除</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="138" id="typelist">
		<thead>
			<tr>
				<th width="30" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="50" align="center">相片</th>
				<th width="50" align="center">相片名称</th>
				<th width="50" align="center">类型</th>
				<th width="100" align="center">描述</th>
				<th width="100" align="center">创建日期</th>
<!--				<th width="50" align="center">操作</th> -->
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${obj.list }">
				<tr>
					<td><input name='ids' value="${item.id }" type='checkbox'></td>
					<td ><img src="${item.url}" width="50px"/></td>
					<td>${item.title }</td>
					<td>${item.pictureType.name }</td>
					<td>${item.description}</td>
					<td>${item.postTime }</td>
<!--  					<td><a title='编辑' target='navTab' href="" class='btnEdit'>编辑</a></td> -->
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
</div>